package pers.qianyu.module.image.exception;

import pers.qianyu.exception.*;

public enum ImageErrorCodeEnum implements ILambErrorCodeEnum {
    FILE_UPLOAD_ERROR(2500, "文件上传失败"),
    INVALID_IMAGE_ID(2501, "请传入正确的图片 id"),
    FILE_DOWNLOAD_ERROR(2502, "文件下载失败"),
    INVALID_NOTICE_TYPE(2503, "通知类型错误"),
    INVALID_NOTICE_ID(2504, "非法通知id"),
    INVALID_NOTICE_STATUS(2505, "非法通知状态"),
    GET_OSS_TOKEN_ERROR(2506, "OSS token 获取失败"),
    ;

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    private final Integer code;
    private final String message;

    ImageErrorCodeEnum(Integer code, String message) {
        this.message = message;
        this.code = code;
    }
}
